<template>
  <hr/>
<h3>插槽续集</h3>
  <slot name=" header" :msg="childMsg">默认值</slot>
  <slot name="main" :demo="msg">默认值</slot><!--name标签添加具名插槽-->
</template>

<script>
export default {
  name: "SlotBaseExtends",
  data(){
    return{
      childMsg:"子组件数据",
      msg:"具名插槽"
    }
  }
}
</script>

<style scoped>

</style>
